
///网络请求基本返回结构
class BaseResponse<T>{
  String msg="";
  int code=200;
  T? data;

  BaseResponse({this.msg="", this.code=200, this.data});

  BaseResponse.fromJson(Map<String, dynamic> json) {
    msg = json['msg'];
    code = json['code'];
    data = json['data'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['msg'] = this.msg;
    data['code'] = this.code;
    data['data'] = this.data;
    return data;
  }
}